package com.shuai.service.impl;

import com.shuai.entity.File;
import com.shuai.mapper.FileMapper;
import com.shuai.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileMapper fileMapper;
    @Override
    public List<File> list(Long projectId) {
        List<File> files  = fileMapper.getByProjectId(projectId);
        return files;
    }
}
